package cn.bonoon.controllers.faq;

import cn.bonoon.kernel.annotations.TransformField;
import cn.bonoon.kernel.web.annotations.form.FormDetail;
import cn.bonoon.kernel.web.annotations.form.PropertyDetail;

@FormDetail(value = 2, width = 250)
public class FaqDetail implements FaqDefine {

	@PropertyDetail(value = 0, colspan = 1)
	@TransformField("catalog.name")
	private String catalog;

	@PropertyDetail(10)
	private int ordinal;
	@PropertyDetail(11)
	private String level;
	
	@PropertyDetail(60)
	private String creatorName;
	@PropertyDetail(61)
	private String createAt;

	@PropertyDetail(value = 50, colspan = 1, height = 80)
	//@Cutoff(-1)
	private String question;

	@PropertyDetail(value = 51, colspan = 1, height = 120)
	//@Cutoff(-1)
	private String answer;

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getCreateAt() {
		return createAt;
	}

	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}

	public String getCreatorName() {
		return creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public int getOrdinal() {
		return ordinal;
	}

	public void setOrdinal(int ordinal) {
		this.ordinal = ordinal;
	}

	public String getCatalog() {
		return catalog;
	}

	public void setCatalog(String catalog) {
		this.catalog = catalog;
	}

}
